Skip to content

Conversation

@Leo-Fish
Copy link

The requestWhenConsentRequestThenReturnAccessTokenResponse test is found to be non-deterministic because it relies on the iteration order of unordered Set in the test setup.

This commit resolves the issue by ensuring a stable order by modifying 2 files:

  1. The selection of a redirect_uri from the RegisteredClient is now deterministic by sorting the collection before selecting an element.

  2. The creation of the OAuth2Authorization test data in TestOAuth2Authorizations was updated to handle unordered collections.

@jgrandja
Copy link
Collaborator

Thanks for the updates @Leo-Fish, however, there hasn't been any issues with the tests as the results have been consistent in CI.

I don't feel these changes are necessary so I'll go ahead and close this.

@jgrandja jgrandja closed this Oct 21, 2025
@jgrandja jgrandja self-assigned this Oct 21, 2025
@jgrandja jgrandja added status: declined A suggestion or change that we don't feel we should currently apply and removed status: waiting-for-triage An issue we've not yet triaged labels Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: declined A suggestion or change that we don't feel we should currently apply

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants